﻿@model IEnumerable<DiemTichLuyModels.Object.SanPham>
@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@Session["abc"]
<img src="@Url.Content("~/Images/heroAccent.png")" />
<table>
    @foreach(var  p  in Model)
    {
    <tr>
            <td>@p.ID</td><td>@p.Name</td><td><a href="@Url.Action("SuaSanPham", "SanPham", new { SanPhamID =p.ID,TenSapham=p.Name})">edit</a><a href="@Url.Action("XoaSanPham", "SanPham", new { SanPhamID =p.ID})">delete</a></td>
    </tr>
    }
</table>
